import request from '@/utils/request'

// 查询设备绑定列表
export function listBinding(query) {
  return request({
    url: '/system/binding/list',
    method: 'get',
    params: query
  })
}

// 查询设备绑定详细
export function getBinding(id) {
  return request({
    url: '/system/binding/' + id,
    method: 'get'
  })
}

// 新增设备绑定
export function addBinding(data) {
  return request({
    url: '/system/binding',
    method: 'post',
    data: data
  })
}

// 修改设备绑定
export function updateBinding(data) {
  return request({
    url: '/system/binding',
    method: 'put',
    data: data
  })
}

//批量修改设备套餐
export function batchEdit(data) {
  return request({
    url: '/system/binding/batchEdit',
    method: 'post',
    data: data
  })
}



// 删除设备绑定
export function delBinding(id) {
  return request({
    url: '/system/binding/' + id,
    method: 'delete'
  })
}
